.roleManageContainer {
  height: 100%;
  background-color: #fff;
  display: flex;
  overflow: hidden;

  .roleManageLeft {
    width: 250px;
    min-width: 250px;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    padding: 0 8px 20px;

    .searchContainer {
      box-sizing: border-box;
      background: #f5f5f5;
      border-radius: 15px;
      margin: 0 12px 24px;

      .btnSearch {
        font-size: 20px;
        position: absolute;
        margin: 7px 14px;
      }

      .searchInput {
        line-height: 32px;
        height: 32px;
        padding-left: 38px;
        border: none;
        outline: none;
        background: transparent;
      }

      .searchResult {
        background: #fff;
        position: absolute;
        z-index: 1;
        top: 33px;
        width: 270px;
        min-height: 500px;
        max-height: 90%;
        border-radius: 3px;
        box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
        overflow: auto;
        background: #fff;

        .userItem,
        .deptItem {
          padding: 5px 10px;
          cursor: pointer;

          &:hover {
            background: #e4e4e4;
          }
        }

        .deptItem {
          display: flex;
          flex-wrap: nowrap;

          >span {
            &:not(:first-child) {
              position: relative;
              padding-left: 10px;
            }

            &:not(:first-child):before {
              content: ' - ';
              position: absolute;
              left: 2px;
            }

            flex: 0 1 auto;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }

        .title {
          padding: 5px 10px;
          color: #757575;
          margin-top: 10px;
        }

        .deptItem {
          line-height: 28px;
        }

        .userItem {
          .noWrap {
            white-space: nowrap;
          }

          .avatar {
            float: left;
            border-radius: 50%;
            width: 32px;
            height: 32px;
          }

          .name,
          .job {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
      }

      &:hover {
        background-color: #ebebeb;
      }
    }

    .actBox {
      padding: 0 16px;

      .iconHover:hover {
        color: #2196f3 !important;
      }

      .creatRole {
        width: 88px;
        height: 28px;
        border-radius: 3px;
        display: flex;
        background: #fff;
        justify-content: center;
        align-items: center;
        border: 1px solid #E0E0E0;
        &:hover {
          background: #F5F5F5;
        }

        .icon-add {
          margin-right: 4px;
        }
      }
    }

    .roleList {
      margin-right: 0px;
      width: 100%;
      padding-top: 12px;
      box-sizing: border-box;
      flex: 1;
      overflow: hidden;

      .roleItem {
        cursor: pointer;
        padding-left: 24px;
        padding-right: 24px;
        width: 220px;
        height: 36px;
        line-height: 34px;
        border-radius: 3px;
        position: relative;

        .roleName {
          display: inline-block;
          width: calc(~'100% - 14px');
          vertical-align: middle;
        }

        .remarkTooptip {
          color: #bdbdbd;
          margin-right: 0 !important;

          &:hover {
            color: #2196f3;
          }
        }

        .editIcon {
          display: none;
          line-height: 30px;

          &:hover {
            color: #2196f3 !important;
          }
        }

        &:hover {
          background-color: rgba(0, 0, 0, 0.04);
        }

        &.current {
          background-color: rgba(33, 150, 243, 0.11);
          color: #2196f3 !important;
          font-weight: bold;

          &:hover {
            background-color: rgba(33, 150, 243, 0.11);
          }

          .roleName {
            color: #2196f3 !important;
          }
        }

        &.current,
        &:hover {
          .remarkTooptip {
            display: inline-block !important;
            margin-right: 10 !important;
          }

          .editIcon {
            display: inline-block;
          }

          .roleName {
            width: calc(~'100% - 40px');
          }
        }

        .delIcon {
          visibility: hidden;
        }
      }

      .ant-tree-treenode {
        .ant-tree-draggable-icon {
          opacity: 0;
        }

        &:hover {
          .ant-tree-draggable-icon {
            opacity: 1;
            color: #9e9e9e;
          }
        }

        &[draggable='false'] {
          .ant-tree-draggable-icon {
            opacity: 0 !important;
          }
        }

        .ant-tree-title {
          width: calc(~'100% - 24px');
        }

        .ant-tree-indent {
          display: none;
        }
        .ant-tree-node-content-wrapper {
          flex: 1;
        }
      }

      .ant-tree-switcher {
        color: #757575;
      }
    }

    .addRoleFolderButton {
      border-radius: 50%;
      width: 26px;
      height: 26px;

      &:hover {
        background: #f5f5f5;
      }
    }
  }

  .roleManageRight {
    flex: 1;
    padding: 24px 32px;
    width: calc(~'100% - 241px');

    .roleContentHeader {
      margin-bottom: 16px;
    }

    .actUserBox {
      display: flex;
      margin-bottom: 10px;

      .actBtn {
        height: 32px;
        border-radius: 3px;
        line-height: 30px;
        text-align: center;
        border: 1px solid #eaeaea;
        background-color: #fff;
        margin-right: 8px;
        padding: 0 16px;
        font-size: 14px;

        &.addUser {
          color: #fff;
          background: #2196f3;
          border: 1px solid #2196f3;
        }

        &:hover {
          color: #1565c0;
          border: 1px solid #1565c0;
          cursor: pointer;
        }

        &.addUser:hover {
          color: #fff;
          background: #1565c0;
          border: 1px solid #1565c0;
        }

        &.disabledBtn {
          cursor: not-allowed;
          color: #9e9e9e;
        }

        &.disabledBtn:hover {
          cursor: not-allowed;
          color: #9e9e9e;
          background-color: #fff;
          border: 1px solid #eaeaea;
        }
      }
    }

    .userList {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;

      .useTableHeader::-webkit-scrollbar {
        display: none;
        width: 0 !important;
        height: 0 !important;
      }

      .useTableHeader,
      .userTableBody {
        margin-right: 10px;
        overflow: auto;
        width: 100%;
      }

      .userTableBody {
        overflow: auto;
        flex: 1;
        min-height: 0;
      }

      .usersTable {
        table-layout: auto;
        width: 100%;
        border-collapse: separate;

        thead {
          position: sticky;
          top: 0;
          z-index: 3;
        }

        tr {

          th,
          td {
            border-bottom: 1px solid #eaeaea;
            color: #757575;
            font-size: 13px;
            font-weight: 400;
            // padding: 10px 0 12px;
            height: 50px;
            text-align: left;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            background: #fff;

            &.fixedLeft:after {
              content: '';
              width: 1px;
              height: 100%;
              background: #eaeaea;
              display: inline-block;
              right: 0;
              position: absolute;
              top: 0;
            }

            &.fixedRight::after {
              content: '';
              width: 1px;
              height: 100%;
              background: #eaeaea;
              display: inline-block;
              left: 0;
              position: absolute;
              top: 0;
            }
          }

          td {
            border: none;
            padding: 0;
            height: 50px;
            color: #333;
            padding-right: 10px;
          }

          .checkBoxCol {
            width: 40px;
            padding-left: 8px;
            position: sticky;
            z-index: 2;
            min-width: 40px;
            left: 0;

            .Checkbox-box {
              margin-right: 0 !important;
            }
          }

          .nameCol {
            width: 200px;
            position: sticky;
            z-index: 2;
            min-width: 200px;
            left: 40px;
          }

          .numberCol {
            max-width: 120px;
            min-width: 120px;
            width: 120px;
          }

          .departmentCol {
            max-width: 220px;
            min-width: 160px;
            width: 160px;
          }

          .positionCol {
            max-width: 220px;
            min-width: 160px;
            width: 160px;
          }

          .departmentRangeCol {
            min-width: 200px;
            max-width: 300px;
            text-overflow: unset;
          }

          .actionCol {
            width: 100px;
            position: sticky;
            z-index: 2;
            min-width: 100px;
            right: 0;
            text-align: center;

            .settingButton {
              color: #1e88e5;

              &:hover {
                color: #49adfc;
              }
            }
          }

          &:hover {
            td {
              background-color: #f7f7f7;
            }

            .name {
              color: #2196f3 !important;
            }
          }
        }
      }
    }
  }

  .themeColor {
    color: #2196f3 !important;
  }
}

.createMoreDropDown {
  width: 100px;
  height: 86px;

  .ant-dropdown-menu-item {
    font-size: 13px;
  }
}

.actRoleDrop {
  width: 160px;
  height: 95px;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);

  .ant-menu-item {
    &:hover {
      background-color: #f5f5f5;
      color: rgba(0, 0, 0, 0.85);
    }
  }

  .delRole {
    color: #f51744 !important;
  }
}

.delConfirmWrap {
  width: 320px;
  background: #fff;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.24);
  padding: 22px 24px;
  border-radius: 3px;

  .delFooter {
    display: flex;
    justify-content: flex-end;
    margin-top: 33px;
  }
}

.roleSetDeptRangeDialog {
  .GSelect-department .onlySelf {
    display: none;
  }
}
